package com.xingfudazi.app.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xingfudazi.common.annotation.Excel;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.annotation.security.DenyAll;
import java.time.LocalDateTime;


/**
 * 动态对象 app_moment
 * 
 * @author ruoyi
 * @date 2024-06-21
 */
@Data
public class AppMoment
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long nid;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 图片 */
    @Excel(name = "图片")
    private String images;

    /** 喜欢/点赞总数量 */
    @Excel(name = "喜欢/点赞总数量")
    private Integer likeNum;

    /** 评论总数量 */
    @Excel(name = "评论总数量")
    private Integer commentNum;

    /** 位置 */
    @Excel(name = "位置")
    private String position;


    /** 删除标志 */
    @TableField(fill = FieldFill.INSERT,value = "del_flag")
    private String delFlag;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT,value = "create_time")
    private LocalDateTime createTime;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.UPDATE,value = "update_time")
    private LocalDateTime updateTime;
}
